import java.util.Scanner;

public class lozenge {
    public static void main(String[] args) {
        Scanner sc = new Scanner(System.in);
        System.out.println("输入菱形边长");
        int length = sc.nextInt();
        //定义最大行数
        int lang = length*2-1;
        int maxlang =length*2;
        int mid = (lang + 1) /2;
        //正三角
        for (int i = 1;i<=mid;i++){
            //打印空格
             for (int x = 1;x<=mid-i;x++){
                 System.out.print(" ");
             }
             //打印内容
             for (int j = 1;j<=(2*i)-1;j++){
                 if (j!=1 & j!=(2*i)-1){
                     continue;
                 }
                 System.out.print("*");
                 for (int l =j; l<(2*i)-1;l++){
                     System.out.print(" ");
                 }
             }
            System.out.println();
        }
        //倒三角
        for (int i = 1;i<=mid-1;i++){
            for (int x = 1;x<=i;x++){
                System.out.print(" ");
            }
            for (int l = 1;l<=maxlang-i;l++){
                if (l!=1 & l!=maxlang/2-i ){
                    continue;
                }
                System.out.print("*");

                for (int j =l; j<maxlang-i*2-1;j++){
                    System.out.print(" ");
                }
            }
            System.out.println();

        }



    }
}